#include <iostream>
#include "opencv2/opencv.hpp"
 
using namespace cv;
int main(int argc,char* argv[])
{
    //写入数据
    FileStorage fs("../test.yml",FileStorage::WRITE);
    int fps = 5;
    fs << "fps" << fps;
    Mat m = Mat::eye(2,3,CV_32F);
    Mat m1 = Mat::eye(3,2,CV_32F);
    Mat result = (m+1).mul(m+3);
    fs << "result" << result;
    fs.release();
    //读出数据
    FileStorage fs2("../test.yml",FileStorage::READ);
    Mat r;
    fs2["result"] >> r;
    std::cout << r  <<std::endl;
    fs2.release();
    return 0;
}
